﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TYRTUBase;

namespace TYControl_For_RTU
{
    public class ViewModel_Config_Device : ViewModelBase
    {
        private ObservableCollection<EquipInfoModel> _ListEquipInfo = new ObservableCollection<EquipInfoModel>();
        public ObservableCollection<EquipInfoModel> ListEquipInfo { get { return _ListEquipInfo; } set { Set("ListEquipInfo", ref _ListEquipInfo, value); } }

        private EquipInfoModel _SelectedEquipInfo;
        public EquipInfoModel SelectedEquipInfo { get => _SelectedEquipInfo; set => Set("SelectedEquipInfo", ref _SelectedEquipInfo, value); }
    }

    public class EquipInfoModel : ViewModelBase
    {
        public EquipInfoModel(EnumEquipType _EquipType)
        {
            EquipType = _EquipType;
        }

        private string _Name;
        public string Name { get => _Name; set => Set("Name", ref _Name, value); }

        private string _EquipId;
        public string EquipId { get => _EquipId; set => Set("EquipId", ref _EquipId, value); }

        public EnumEquipType EquipType;
    }
}